﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.Dao;

partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 指令
    /// </summary>
    public DbSet<POWcsTaskCmd> WcsTaskCmds { get; set; }
}

/// <summary>
/// 指令
/// 表[wcs_task_cmd]
/// </summary>
[Table("wcs_task_cmd")]
public class POWcsTaskCmd
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[wcs_task_cmd.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 任务Id
    /// [wcs_task_cmd.task_id)]
    /// </summary>
    [Column("task_id")]
    public long? TaskId { get; set; }
    /// <summary>
    /// 流水号
    /// [wcs_task_cmd.task_no)]
    /// </summary>
    [Column("task_no")]
    public int? TaskNo { get; set; }
    /// <summary>
    /// 任务类型
    /// [wcs_task_cmd.task_type)]
    /// </summary>
    [Column("task_type")]
    public int? TaskType { get; set; }
    /// <summary>
    /// 指令执行设备
    /// [wcs_task_cmd.equip_id)]
    /// </summary>
    [Column("equip_id")]
    public long? EquipId { get; set; }
    /// <summary>
    /// 开始货位
    /// [wcs_task_cmd.start_loc)]
    /// </summary>
    [Column("start_loc")]
    public long? StartLoc { get; set; }
    /// <summary>
    /// 当前货位
    /// [wcs_task_cmd.current_loc)]
    /// </summary>
    [Column("current_loc")]
    public long? CurrentLoc { get; set; }
    /// <summary>
    /// 目标货位
    /// [wcs_task_cmd.target_loc)]
    /// </summary>
    [Column("target_loc")]
    public long? TargetLoc { get; set; }
    /// <summary>
    /// [wcs_task_cmd.cmd_type)]
    /// </summary>
    [Column("cmd_type")]
    public int? CmdType { get; set; }
    /// <summary>
    /// 指令装填
    /// [wcs_task_cmd.cmd_status)]
    /// </summary>
    [Column("cmd_status")]
    public int? CmdStatus { get; set; }
    /// <summary>
    /// 旋转角度
    /// [wcs_task_cmd.spin_angle)]
    /// </summary>
    [Column("spin_angle", TypeName = "decimal(18,2)")]
    public decimal? SpinAngle { get; set; }
    /// <summary>
    /// 是否喷涂【0:不喷涂；1:喷涂】
    /// [wcs_task_cmd.is_spray)]
    /// </summary>
    [Column("is_spray")]
    public int? IsSpray { get; set; }
    /// <summary>
    /// 是否等待【0 不等待；1 等待；2 匹配完成】
    /// [wcs_task_cmd.pair_wait)]
    /// </summary>
    [Column("pair_wait")]
    public int? PairWait { get; set; }
    /// <summary>
    /// 结束货位
    /// [wcs_task_cmd.finish_loc)]
    /// </summary>
    [Column("finish_loc")]
    public long? FinishLoc { get; set; }
    /// <summary>
    /// 结束方式
    /// [wcs_task_cmd.finish_mode)]
    /// </summary>
    [Column("finish_mode")]
    public int? FinishMode { get; set; }
    /// <summary>
    /// 结束时间
    /// [wcs_task_cmd.finish_time)]
    /// </summary>
    [Column("finish_time")]
    public DateTime? FinishTime { get; set; }
    /// <summary>
    /// 创建时间
    /// [wcs_task_cmd.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [wcs_task_cmd.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [wcs_task_cmd.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// 0：出库；2/1：人工出库；3：返库  ；4:入库
    /// [wcs_task.finish_type)]
    /// </summary>
    [Column("mark_type")]
    public int? Mark { get; set; }
    /// <summary>
    /// 指令执行优先级
    /// </summary>
    [Column("out_priority")]
    public int? OutPriority { get; set; }
    /// <summary>
    /// 是否跨库
    /// </summary>
    [Column("is_cross")]
    public int? IsCross { get; set; }
    /// <summary>
    /// 人工操作状态0默认12人工删除13人工完成 15 wcs清理
    /// [wcs_task_cmd.task_wms_status)]
    /// </summary>
    [Column("task_wms_status")]
    public int? TaskWmsStatus { get; set; }
    /// <summary>
    /// 尺寸
    /// [wcs_task_cmd.task_wms_status)]
    /// </summary>
    [Column("innerdiameter")]
    public string Innerdiameter { get; set; }

    
}
